//
//  NetworkManager+Common.h
//  CustomFramework
//
//  Created by Houge on 2021/5/11.
//

#import "NetworkManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface NetworkManager (Common)

/// 上传单张图片
+ (void)uploadImage:(UIImage *)image showLoading:(BOOL)showLoading success:(SuccessBlock)success failure:(FailureBlock)failure;

/// 上传图片数组
+ (void)uploadImageList:(NSArray *)imageList showLoading:(BOOL)showLoading complete:(void (^)(NSArray * _Nullable imageUrlArray))completeBlock;

/// 上传视频
+ (void)uploadVideoWithURL:(NSURL *)videoPath success:(SuccessBlock)success failure:(FailureBlock)failure;

/// 下载文件
+ (void)downloadFileWithURL:(NSString *)fileUrl saveFilePath:(nullable NSString *)saveFilePath showLoading:(BOOL)showLoading success:(DownloadSuccessBlock)success failure:(FailureBlock)failure;

@end

NS_ASSUME_NONNULL_END
